﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChangePass.ascx.cs" Inherits="SMS.Admin.Modules.ChangePassPage" %>

<div id="box">
    <h3>THAY ĐỔI MẬT KHẨU</h3><br />
    
    <fieldset id="warning">
        <legend>Thông báo</legend>
        
        <div align="center"><asp:Label ID="lblError" runat="server" /></div>
    </fieldset><br />
    
    <div align="center">
        <asp:MultiView ID="mvMain" runat="server">
            <asp:View ID="vChangePass" runat="server">
                <div align="center" style="width:60%;">
                    <label>Mật khẩu cũ : </label>
                    <asp:TextBox ID="txtOldPass" TextMode="Password" runat="server" Width="150px" />
                    <asp:RequiredFieldValidator ID="rfvOldPass" runat="server" ErrorMessage="*" ControlToValidate="txtOldPass" EnableClientScript="False" /><br />
                    
                    <label>Mật khẩu mới : </label>
                    <asp:TextBox ID="txtNewPass" TextMode="Password" runat="server" Width="150px" />
                    <asp:RequiredFieldValidator ID="rfvPass" runat="server" ErrorMessage="*" ControlToValidate="txtNewPass" EnableClientScript="False" /><br />
                    
                    <label>Xác nhận lại : </label>
                    <asp:TextBox ID="txtConfirmPass" TextMode="password" runat="server" Width="150px" />
                    <asp:CompareValidator ID="cvConfirm" runat="server" ErrorMessage="Mật khẩu không trùng khớp" ControlToCompare="txtNewPass" ControlToValidate="txtConfirmPass" EnableClientScript="False" /><br />
                </div>
                
                <div align="center" style="width:60%;"><asp:Button ID="lnkChangePass" runat="server" Text="Đổi mật khẩu" OnClick="lnkChangePass_Click" /> &nbsp;&nbsp;<asp:Button ID="lnkCancelBottom" runat="server" Text="Hủy bỏ" OnClick="lnkCancel_Click" /></div>
            </asp:View>
            
            <asp:View ID="vSuccess" runat="server">
                <div align="center" style="width:60%;">
                    <b>Đổi mật khẩu thành công.</b><br /><br />
                    <asp:Button ID="hypHome" runat="server" Text="Click chuột vào đây để quay trở về trang chủ" OnClick="hypHome_Click" />
                </div>
            </asp:View>
        </asp:MultiView>
    </div>
</div> 